import request from '@/utils/request'

// 列表
export function page(params) {
  return request({
    url: '/base/warehouse/page',
    method: 'post',
    data: params
  })
}

// 新增
export function add(params) {
  return request({
    url: `/base/warehouse`,
    method: 'post',
    data: params
  })
}

// 修改
export function edit(params) {
  return request({
    url: `/base/warehouse`,
    method: 'put',
    data: params
  })
}

// 删除
export function remove(params) {
  return request({
    url: `/base/warehouse`,
    method: 'delete',
    data: params
  })
}
